<!-- 头部 -->
<include file="Common:header" />
<script>
	function changeStar(show,hide){
		var area = 2;
		$("#"+show).addClass('select');
		$("#"+hide).removeClass('select');
		if(show == 'dl'){
			area = 1;	
		}else{
			area = 2;
		}
		$.getJSON('__URL__/showStar',{area:area},function(json){
			if(json.status==1){
				$('#starlist').html(json.data);  
			}       
		});
	}

	function addfollow(type,id){
		$.getJSON('__URL__/addFollow',{type:type,id:id},function(json){
			if(json.data){
				$('#likenum').html(json.data);  
			}else{
				
			}
		});
	}
</script>
<div id="focus">
	<div id="picshow_main">
		<ul>
			<volist name="picinfo" id="vo">
			<li target="_blank"><a href="" target="_blank"><img src="/Public/Uploads/Images/{$vo['recom_photo_name']}" width="670px" height="265px"></a></li>
			</volist>
		</ul>
	</div>
	<script type="text/javascript" src="__PUBLIC__/Js/jquery.flashSlider-1.0.js"></script>
	<script>$("#picshow_main").flashSlider({ speed: 0, controlsShow: true, pause: 5000 });</script>
    <div class="user_active">
        <if condition="$UserInfo['user_code']">
            <div style="padding: 0 0 8px"><img src="__PUBLIC__/Images/reg_add.png" /></div>
        <else />
            <div class="user_login">
                <a class="register_btn" title="立即注册" href="/register">立即注册</a>
                <a class="login_sina_btn" title="使用sina微博登录" href="__APP__/Oauth/sinaLogin">使用sina微博登录</a>
                <a class="login_qq_btn" title="使用qq登录" href="__APP__/Oauth/qqLogin">使用qq登录</a>
                <!--<a class="login_taobao_btn" title="" href="">使用taobao登录</a>-->
            </div>
        </if>
        <ul class="user_active_list">
			<volist name="recomgoods" id="vo">
        	<li><i></i><a target="_blank" href="__APP__/Goods/index/goods_id/{$vo['goods_code']}" title="{$vo['goods_name']}" class="c6">{$vo['goods_name']|msubstr=0,18,'utf-8',false}</a><a class="small_btn floatright" target="_blank" href=""> 去看看 </a></li>   
			</volist>
        </ul>
        <!--
		<volist name="adinfo" id="vo">
        <div class="focus_b"><a href="" target="_blank"><img alt="小组" src="/Public/Uploads/Images/{$vo['recom_photo_name']}"></a></div>
		</volist>
		-->
    </div>
</div>

<!-- 滚动明星 -->
<div id="star">
	<div class="star_nav">
    	<ul>
        	<li id="dl" onclick="changeStar('dl','gt')" class="select">大陆明星</li>
            <li id="gt" onclick="changeStar('gt','dl')">港台明星</li>
        </ul>
    </div>
	<div id='gtlist' class="star_wrap">
    	<div class="left_j"></div>
        <div class="middle_ul">
			<div id="inner">
				<ul id="starlist">
					<volist name="starinfo" id="vo">
					<li><a href="__APP__/Star/index/starid/{$vo['id']}"><img src="{$vo['photo']}" /></a></li>
					</volist>
				</ul>
			</div>
        </div>
        <div class="right_j"></div>
    </div>
</div>

<!-- 新品尝鲜 -->
<div class="white_wrap middle">
	<div class="title_top">
    	<ul>
        	<li class="title_top_left"><img src="__PUBLIC__/Images/01.jpg" /></li>
            <li class="more"><a href="" target="_blank" title="更多" class="c3">更多</a></li>
        </ul>
    </div>
    <div class="content_middle">
		<volist name="newgoods" id="vo">
    	<div class="content_middle_div">
            <ul>
                <li><a href="__APP__/Goods/index/goods_id/{$vo['goods_code']}" target="_blank" title="{$vo[goods_name]}"><img src="__PUBLIC__/Uploads/Goods/220_{$vo['goods_photo_add']}" width="220" height="280" /></a></li>
                <li><a href="__APP__/Goods/index/goods_id/{$vo['goods_code']}" target="_blank" title="{$vo[goods_name]}" class="c3">{$vo[goods_name]}</a></li>
                <li class="go">上架时间：{$vo['pub_create_date']|substr=0,10}<a href="__APP__/Goods/index/goods_id/{$vo['goods_code']}" target="_blank" title="去看看"><img src="__PUBLIC__/Images/go.jpg" /></a></li>
            </ul>        	
        </div>
		</volist>
    </div> 
</div>

<!-- 明星同款 -->
<div class="white_wrap middle">
	<div class="title_top">
    	<ul>
        	<li class="title_top_left"><img src="__PUBLIC__/Images/02.jpg" /></li>
            <li class="more"><a href="" target="_blank" title="更多" class="c3">更多</a></li>
        </ul>
    </div>
    <div class="content_middle">
    	<volist name="starSameInfo" id="vo">
            <div class="content_miidle_div_tk">
                <ul>
                    <li><a href="__APP__/Star/index/starid/{$vo['id']}" target="_blank" title=""><img src="__PUBLIC__/Uploads/StarSame/{$vo['pic_path']}" /></a></li>
                    <li class="star_b_c"><span>{$vo['star_name']}</span>同款宝贝：{$vo['count']}件</li>
                    <li class="like_fans"><a href="javascript:;" class="ilike" title="❤喜欢" onclick="addfollow('like',{$vo['star_id']})"><b class="like_txt floatleft" >❤关注</b><b id="likenum" class="like_num floatleft">{$vo['like_num']}</b><b class="like_right floatleft"></b></a><a href="#" class="fans" title="粉丝"><b class="fans_txt floatleft">粉丝</b><b class="fans_num floatleft">{$vo['fans_num']}</b><b class="fans_right floatleft"></b></a></li>
                </ul>     
            </div>
        </volist>
    </div>
</div>    
        
<!-- 人气聚集 -->
<div class="white_wrap middle">
	<div class="title_top">
    	<ul>
        	<li class="title_top_left"><img src="__PUBLIC__/Images/03.jpg" /></li>
            <li class="more"><a href="__APP__/Human/index" target="_blank" title="更多" class="c3">更多</a></li>
        </ul>
    </div>
    <div class="content_middle">
		<volist name="userrecom" id="vo">
		<div class="content_middle_div">
            <ul>
                <li><a href="{$vo['source_url']}" target="_blank" title=""><img src="__PUBLIC__/Uploads/Photo/{$vo.recom_pic1}" /></a></li>
                <li class="recommon">推荐者：<a href="" target="_blank">{$vo['recom_user']}</a></li>
                <li><a href="{$vo['source_url']}" target="_blank" title="{$vo['recom_title']}" class="c3">{$vo['recom_title']}</a></li>
                <li class="like_fans"><a href="#" class="ilike" title="喜欢"><b class="like_txt floatleft">人气值</b><b class="like_num floatleft">128</b><b class="like_right floatleft"></b></a><a href="#" class="fans" title="粉丝"><b class="fans_txt floatleft">还差</b><b class="fans_num floatleft">128</b><b class="fans_right floatleft"></b></a></li>
                <li class="go">截止日期：{$vo['status_time']}</li>
            </ul>        	
        </div> 
		</volist>
    </div> 
</div>

<include file="Common:footer" />
